package com.hongning.railway.entity.resbean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author: zhangjing
 * DATA:2019-08-15 15:50
 * DESC:
 * email:zhangjingworkmol@163.com
 */
public class ResVideoBean implements Parcelable {


    /**
     * appCoverImg :
     * appIsTop : N
     * authStatus : 04
     * authTime : 1565769089000
     * clickNum : 80
     * createTime : 1565768950000
     * deploySys : 12
     * hasCover : 1
     * newsBelong : 1
     * newsCategory : 2
     * newsContent : http://47.108.73.33:8999/nbfp/templates/img/2019/8/15/20190815153207892205_斐然向风第1季-13.mp4
     * newsId : 20190814154909128168
     * newsOrgionTime : 2019-08-14 15:49:09
     * newsRoundup : 视频测试
     * newsSubTypeId : 103001
     * newsTitle : 视频测试
     * newsTypeId : 103001
     * newsWeight : 0
     * orgId : 101
     * orgName : 党支部
     * pcCoverImg :
     * pcIsTop : N
     * showTime : 504
     * staffId : 123
     * staffName :
     */

    private String appCoverImg;
    private String appIsTop;
    private String authStatus;
    private long authTime;
    private int clickNum;
    private long createTime;
    private String deploySys;
    private String hasCover;
    private String newsBelong;
    private int newsCategory;
    private String newsContent;
    private String newsId;
    private String newsOrgionTime;
    private String newsRoundup;
    private String newsSubTypeId;
    private String newsTitle;
    private String newsTypeId;
    private int newsWeight;
    private String orgId;
    private String orgName;
    private String pcCoverImg;
    private String pcIsTop;
    private int showTime;
    private String staffId;
    private String staffName;

    public int getType(){
        if (newsCategory==1||newsCategory==3){
            //图文
            return 1;
        }else {
            //视频
            return 2;
        }
    }

    public String getAppCoverImg() {
        return appCoverImg;
    }

    public void setAppCoverImg(String appCoverImg) {
        this.appCoverImg = appCoverImg;
    }

    public String getAppIsTop() {
        return appIsTop;
    }

    public void setAppIsTop(String appIsTop) {
        this.appIsTop = appIsTop;
    }

    public String getAuthStatus() {
        return authStatus;
    }

    public void setAuthStatus(String authStatus) {
        this.authStatus = authStatus;
    }

    public long getAuthTime() {
        return authTime;
    }

    public void setAuthTime(long authTime) {
        this.authTime = authTime;
    }

    public int getClickNum() {
        return clickNum;
    }

    public void setClickNum(int clickNum) {
        this.clickNum = clickNum;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getDeploySys() {
        return deploySys;
    }

    public void setDeploySys(String deploySys) {
        this.deploySys = deploySys;
    }

    public String getHasCover() {
        return hasCover;
    }

    public void setHasCover(String hasCover) {
        this.hasCover = hasCover;
    }

    public String getNewsBelong() {
        return newsBelong;
    }

    public void setNewsBelong(String newsBelong) {
        this.newsBelong = newsBelong;
    }

    public int getNewsCategory() {
        return newsCategory;
    }


    public String getNewsContent() {
        return newsContent;
    }

    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent;
    }

    public String getNewsId() {
        return newsId;
    }

    public void setNewsId(String newsId) {
        this.newsId = newsId;
    }

    public String getNewsOrgionTime() {
        return newsOrgionTime;
    }

    public void setNewsOrgionTime(String newsOrgionTime) {
        this.newsOrgionTime = newsOrgionTime;
    }

    public String getNewsRoundup() {
        return newsRoundup;
    }

    public void setNewsRoundup(String newsRoundup) {
        this.newsRoundup = newsRoundup;
    }

    public String getNewsSubTypeId() {
        return newsSubTypeId;
    }

    public void setNewsSubTypeId(String newsSubTypeId) {
        this.newsSubTypeId = newsSubTypeId;
    }

    public String getNewsTitle() {
        return newsTitle;
    }

    public void setNewsTitle(String newsTitle) {
        this.newsTitle = newsTitle;
    }

    public String getNewsTypeId() {
        return newsTypeId;
    }

    public void setNewsTypeId(String newsTypeId) {
        this.newsTypeId = newsTypeId;
    }

    public int getNewsWeight() {
        return newsWeight;
    }

    public void setNewsWeight(int newsWeight) {
        this.newsWeight = newsWeight;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getPcCoverImg() {
        return pcCoverImg;
    }

    public void setPcCoverImg(String pcCoverImg) {
        this.pcCoverImg = pcCoverImg;
    }

    public String getPcIsTop() {
        return pcIsTop;
    }

    public void setPcIsTop(String pcIsTop) {
        this.pcIsTop = pcIsTop;
    }

    public int getShowTime() {
        return showTime;
    }

    public void setShowTime(int showTime) {
        this.showTime = showTime;
    }

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public ResVideoBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.appCoverImg);
        dest.writeString(this.appIsTop);
        dest.writeString(this.authStatus);
        dest.writeLong(this.authTime);
        dest.writeInt(this.clickNum);
        dest.writeLong(this.createTime);
        dest.writeString(this.deploySys);
        dest.writeString(this.hasCover);
        dest.writeString(this.newsBelong);
        dest.writeInt(this.newsCategory);
        dest.writeString(this.newsContent);
        dest.writeString(this.newsId);
        dest.writeString(this.newsOrgionTime);
        dest.writeString(this.newsRoundup);
        dest.writeString(this.newsSubTypeId);
        dest.writeString(this.newsTitle);
        dest.writeString(this.newsTypeId);
        dest.writeInt(this.newsWeight);
        dest.writeString(this.orgId);
        dest.writeString(this.orgName);
        dest.writeString(this.pcCoverImg);
        dest.writeString(this.pcIsTop);
        dest.writeInt(this.showTime);
        dest.writeString(this.staffId);
        dest.writeString(this.staffName);
    }

    protected ResVideoBean(Parcel in) {
        this.appCoverImg = in.readString();
        this.appIsTop = in.readString();
        this.authStatus = in.readString();
        this.authTime = in.readLong();
        this.clickNum = in.readInt();
        this.createTime = in.readLong();
        this.deploySys = in.readString();
        this.hasCover = in.readString();
        this.newsBelong = in.readString();
        this.newsCategory = in.readInt();
        this.newsContent = in.readString();
        this.newsId = in.readString();
        this.newsOrgionTime = in.readString();
        this.newsRoundup = in.readString();
        this.newsSubTypeId = in.readString();
        this.newsTitle = in.readString();
        this.newsTypeId = in.readString();
        this.newsWeight = in.readInt();
        this.orgId = in.readString();
        this.orgName = in.readString();
        this.pcCoverImg = in.readString();
        this.pcIsTop = in.readString();
        this.showTime = in.readInt();
        this.staffId = in.readString();
        this.staffName = in.readString();
    }

    public static final Creator<ResVideoBean> CREATOR = new Creator<ResVideoBean>() {
        @Override
        public ResVideoBean createFromParcel(Parcel source) {
            return new ResVideoBean(source);
        }

        @Override
        public ResVideoBean[] newArray(int size) {
            return new ResVideoBean[size];
        }
    };
}
